frame of mind
Mental or emotional attitude or mood, as in
You have to be in the right frame of mind to enjoy hiking in the rain
. This idiom was first recorded in 1665.